package com.d0323;
import java.util.Scanner;
public class Number{
    public static void main(String args[]){
        Scanner scan=new Scanner(System.in);
        System.out.print("输入一个数字字符串：");
        String s=scan.nextLine();
        int[] num=new int[s.length()];
        for(int i=0;i<s.length();i++){
            num[i]=s.charAt(i);
        }
        int even=0,odd=0;
        for(int j=0;j<num.length;j++){
            if(num[j]%2==0){
                even++;
            }else{
                odd++;
            }
        }
        System.out.print("奇数个数为："+odd+"\n偶数个数为："+even);
    }
}